home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-12 | 2.7 KB | 60 lines | [TEXT/GEOL] |
- Item 6491084 11-Jan-90 19:11
-
- From: D4453 Technically Soft, Chris Lang,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Some basic questions
-
- January 11, 1990
-
- To: MacApp'ers
- From: Chris Lang, Technically Soft, PRT D4453
-
-
- I'm a relative novice at MacApp and therefore feel lost most of the time. My
- first question is just what is a silent failure? Will it just "writeln" in my
- Debug code or should I be more concerned? Case in point;
-
- TDialogView.DismissDialog, if CanDismiss returns a false then DismissDialog
- calls failure(noErr,0).
-
- I have a modal dialog with Text Edit fields. If the user enters an incorrect
- value into one of these fields then I want an alert to be drawn to inform
- him/her of the error followed by selecting the incorrect text. I've
- incorportated a verifyEntry routine within an overridden CanDismiss method.
- If in fact there was an error, after the user clicks the okay button of the
- alert the silent failure is generated. Should I go through and write exception
- handlers for the failure generated by DismissDialog or ignore it? Can I change
- the fDismissed field of TDialogView with out calling DismissDialog and thereby
- averting the silent failure altogether?
-
- The second question is about, everyones favorite, the USES clause. Is it
- necessary to include all of the MacApp units that are recommended on pages 77
- and 78 of the Intro to MacApp, or should I follow the example problems and only
- declare a few of the units (the Intro recommends 12 Units, calc only uses 4 of
- the 12????). I'm also having a hard time making a correct MABuild scrip. I've
- written a unit called General.p which does some very basic things and have
- included it in the USES statement. At first I couldn't get it to complile so I
- rewrote the MABuild Script to include it. Then I got a Indentifier unknown
- error for the TYPE SFReply even though I have PACKAGES.p also listed in the
- USES statement. Moving General.p to the PInterface folder and using the
- default MABuild didn't work either.
-
- Why is it that when I select R from the Debugger I always get the same 63
- Procedures Listed? I'm USEing UMacAppUtilities and according to the Intro to
- MacApp manual "…every routine in a unit that names UMacAppUtilities in its USES
- clause (including all of MacApp) is automatically covered by {D++}…".
-
- One more simple question. Do I have to explicitly create a file to write to
- within my MacApp Application? Only the Cards example program actually calls
- the Standard File Create procedure, do the rest just not save any thing or am
- I missing something altogether?
-
- Whew, I feel better already having just asked the questions.
-
- Thanks for your help
- Chris, D4453
-
-
-